<?php
class Approve_model extends CI_Model
{
	public function get_request_data()
	{
		$array = array('resstatus' => 0);
		$query = $this->db->get_where('reservation', $array);
		
		if($query->num_rows() > 0)
		{
			foreach ($query->result() as $row) {
				$data[] = $row;
			}
			return $data;
		}
	}
}